package ooday03;
//父类
public abstract class  Animal {
    String name;//成员变量
    int age;
    String color;
    Animal(){
    }
    Animal(String color,int age,String name){
        this.color=color;
        this.age=age;
        this.name=name;

    }
    abstract void eat();//抽象方法
    void drin(){//普通方法
        System.out.println(color+"色"+age+"岁"+name+"正在喝水");
    }
}
